package com.guigu.service.impl;

import com.guigu.entity.OrdersettingBean;
import com.guigu.mapper.OrdersettingMapper;
import com.guigu.service.OrdersettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class OrdersettingServiceImpl implements OrdersettingService {

    @Autowired
    private OrdersettingMapper ordersettingMapper;
    @Override
    public List<OrdersettingBean> selectOrdersetting() {
        return this.ordersettingMapper.selectOrdersetting();
    }

    @Override
    public void addordersetting(OrdersettingBean ordersettingBean) {
        this.ordersettingMapper.addordersetting(ordersettingBean);
    }

    @Override
    public OrdersettingBean selectOrdersettingByorderDate(OrdersettingBean ordersettingBean) {
        return this.ordersettingMapper.selectOrdersettingByorderDate(ordersettingBean);
    }

    @Override
    public void updateOrdersetting(OrdersettingBean ordersettingBean) {
        this.ordersettingMapper.updateOrdersetting(ordersettingBean);
    }

    @Override
    public void updatereservations(OrdersettingBean ordersettingBean) {
        this.ordersettingMapper.updatereservations(ordersettingBean);
    }
}
